import { Component, OnInit, Input } from '@angular/core';


@Component({
  selector: 'app-myloading',
  templateUrl: './myloading.component.html',
  styleUrls: ['./myloading.component.scss'],
})
export class MyloadingComponent implements OnInit {

  @Input('hasData') hasData: boolean;

  @Input('infoText') info: string;

  constructor() {
    this.hasData = false;
    this.info = '拼命加载中...';
  }

  ngOnInit() {
    console.log(this.hasData);
  }

}
